export const DIC_PERIODA = [
  { value: "", label: "全部" },
  { value: "1", label: "孕前期" },
  { value: "2", label: "怀孕期" },
  { value: "3", label: "儿童期（CH1）" },
  { value: "4", label: "儿童期（CH2）" }
];

export const DIC_PERIODB = [ 
  //研究阶段
  { value: "1", label: "孕前期" },
  { value: "2", label: "怀孕期" },
  { value: "3", label: "儿童期（CH1）" },
  { value: "4", label: "儿童期（CH2）" }
];

export const DIC_Intensity = [
  //干预强度
  { value: "1", label: "AA" },
  { value: "2", label: "A" }
];

export const filterPeriod = val => {
  let data = DIC_PERIODB.find(item => item.value == val);
  return data ? data.label : "-";
};

export const filterIntensityOfIntervention = val => {
  let data = DIC_Intensity.find(item => item.value == val);
  return data ? data.label : "-";
};
